package com.rd.student.jiaji.class4.suyan.zrrd.day08;

public class Cat implements Animal01{
    @Override
    public void sleep() {
        System.out.println("sleep");
    }

    @Override
    public void eat() {
        System.out.println("eat");

    }

    @Override
    public int getAge() {
        return 30;

    }

    @Override
    public String getNmae(String name) {
        return name;
    }
    //重写默认方法
    public void fly(){
        System.out.println("cat fly");
    }
    public static void run(){
        System.out.println("run");
    }
}
